<template>
<div>
  <h1>网络请求</h1>
</div>
</template>
<script>
// import axios from "../utils/axios";
import qs from "qs";
export default {
 async created() {
  console.log(this)
    // const url = "http://www.lrfc.vip:1798/fcj/music/rankSongList"
    // const url ="http://localhost:2333/fcj/music/rankSongList"
    // const url ="/fcj/music/rankSongList" //使用/ 会自动拼接当前的访问地址
    const url ="/hehe/fcj/music/rankSongList" //使用/ 会自动拼接当前的访问地址
    const result = await this.$axios.post(url,qs.stringify({topid:4}))
    console.log(result)
 }
}
</script>